﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TeamTasker.Contracts
{
    public partial class Task
    {
        public Task()
        {
            SubTasks = new List<Task>();
            History = new List<TaskHistoryEntry>();
            WorkLog = new List<TaskWorkLogEntry>();
            Predecessors = new Dictionary<long, string>();
        }

        public User AssignedUser { get; set; }

        public Task Parent { get; set; }

        public IList<Task> SubTasks { get; private set; }
    }
}
